<?php

require_once 'config.php';
/* connect to the db */

function conectar() {
    $link = mysql_connect(SERVIDOR, USUARIO, SENHA) or die('Cannot connect to the DB');
    mysql_select_db(BASE, $link) or die('Cannot select the DB');
    return $link;
}
function desconectar($link){
    mysql_close($link);
}
